package bilibili.poly_.canshu;

public class Manager extends Employee {
    private double bonus;

    public Manager() {
    }

    public Manager(String name, double month_salary, double bonus) {
        super(name, month_salary);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    // 特有方法
    public void manager() {
        System.out.println("经理：" + getName() + "正在管理");
    }

    // 重写getAnnual方法
    public double getAnnual() {
        return super.getAnnual() + this.bonus;
    }
}
